﻿<?php include("template/baglanti.php"); include ("template/upload.php"); include("template/header.php");
$query = "SELECT * FROM categori ORDER BY categori_id";
$sql = mysql_query($query);
?>
  


<link rel="stylesheet" type="text/css" href="css/main.css" />
 
	<link rel="stylesheet" type="text/css" href="./media/css/jquery.dataTables.css">
	<link rel="stylesheet" type="text/css" href="./resources/syntax/shCore.css">
	<link rel="stylesheet" type="text/css" href="./resources/demo.css">
	<style type="text/css" class="init"> </style>
	<script type="text/javascript" language="javascript" src="./media/js/jquery.js"></script>
	<script type="text/javascript" language="javascript" src="./media/js/jquery.dataTables.js"></script>
	<script type="text/javascript" language="javascript" src="./resources/syntax/shCore.js"></script>
	<script type="text/javascript" language="javascript" src="./resources/demo.js"></script>
	<script type="text/javascript" language="javascript" class="init">
	$(document).ready(function() { $('#example').dataTable();} );</script>

<body>



<div class="wrapper">
<div class="menu radius flt"> <?php include("./template/menu.php") ?> </div>

<div class="wrapperInside radius flt"> 
<div class="wrapperInsideCapture" style="margin-bottom:20px;"> Category List</div>
<table id="example" class="display" cellspacing="0" width="100%" s>
  <thead>
    <tr>
      <th>Category Name</th>
      <th>Order List</th>
      <th>Show</th>
      <th>Edit</th>
      <th>Delete</th>
    </tr>
  </thead>
  <tfoot>
  		

    <tr>
      <th>Category Name</th>
      <th>Order List</th>
      <th>Show</th>
      <th>Edit</th>
      <th>Delete</th>

    </tr>
  </tfoot>
  <tbody>
  <?php while($row = @mysql_fetch_assoc($sql)): ?>
    <tr>

<td><?=$row['categori_name']?></td>
<td><?=$row['categori_show_list']?></td>
<td><?php if($row['categori_show'] == 1 ) echo"<img src=images/show.png >";?> <?php if($row['categori_show'] == 0 ) echo"<img src=images/unshow.png>";?></td>
<td><a href="categoriEdit.php?id=<?= $row['categori_id']?>">  <img src="images/edit.png" >  </a></td>
<td><a href="categoriDelete.php?id=<?= $row['categori_id']?>" onClick="return confirm('Bu veri silinecek eminmisiniz?')"> <img src="images/Delete.png"> </a></td>

       <?php endwhile; ?>
    </tr>

  </tbody>
</table>

   
</div>


</div>
</div>


<?php include("template/footer.php") ?>



